{include file="public/user_head" /}
<body>
<div class="page-body">
    {include file="public/user_dh" /}

    <div class="countgo pull-left"><div class="zt">
        <!--MAN -->
        <div class="remain">
            <div class="gao1"></div>

            <div>

            </div>
            <div class="panel panel-default">
                <div class="panel-heading">推荐结构树形图</div>
                <div class="panel-body">
                    <ul id="wenjianshu" class="ztree"></ul>
                </div>
            </div>
        </div>
        <!--MAN End-->
    </div></div>

    <link rel="stylesheet" href="/static/wap/ui/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="/static/wap/ui/zTree_v3/js/jquery.ztree.all-3.5.min.js"></script>
    <script>
        mgo(21);


        var setting = {
            view: {
                selectedMulti: false
            },
            async: {
                enable: true,
                url:"/mobile/bin.php?act=rr",
                autoParam:["id", "name=n", "level=lv","icon"],
                otherParam:{"act":"ax"},
                dataFilter: filter
            }
        };

        function filter(treeId, parentNode, childNodes) {
            if (!childNodes) return null;
            for (var i=0, l=childNodes.length; i<l; i++) {
                childNodes[i].name = childNodes[i].name.replace(/\.n/g, '.');
            }
            return childNodes;
        }

        $(document).ready(function(){
            $.fn.zTree.init($("#wenjianshu"), setting);
        });
    </script>

</div>
<script type="text/javascript">
    $(".head-icon-left").on("click", function () {
        window.history.go(-1);
    });
</script>
{include file="public/footer" /}
</body>
</html>